package com.team11.server.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.team11.server.pojo.HInformation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team11.server.pojo.dto.AddWorkList;
import com.team11.server.pojo.dto.JobAuditList;
import com.team11.server.pojo.dto.vo.AddWorkListVo;
import com.team11.server.pojo.dto.vo.JobAuditListVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author pjc
 * @since 2021-06-17
 */
public interface HInformationMapper extends BaseMapper<HInformation> {

    IPage<AddWorkList> getDistributeJobList(IPage<AddWorkList> page,
                                            @Param("addWorkListVo") AddWorkListVo addWorkListVo);

    /**
     * 使c_f_id为空
     *
     * @param hId
     */
    void SetCFId(@Param("hId") Integer hId);

    /**
     * 获取作业审核列表
     * @param page
     * @return
     */
    IPage<JobAuditList> getJobAuditList(IPage<JobAuditList> page,
                                        @Param("status") Integer status,
                                        @Param("jobAuditListVo") JobAuditListVo jobAuditListVo);

    /**
     * 让cFid为null
     * @param hId
     */
    void SetCFIdNull(@Param("hId") Integer hId);

    List<Map<String, Object>> getSIdJoinPId(@Param("hId") Integer hId);
}
